<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>更新书籍表</title>
</head>
<body>
    <form action="/index/update_book/{{ book.id }}" method="post">
    {% csrf_token %}
<!--    css3 disabled属性 不可选状态/禁用元素-->
    <p>
        书籍名:<input type="text"  value="{{ book.title }}" disabled="disabled">
{#        书籍名:<input type="text"  value="{{ book.title }}" name="title">#}
    </p>
    <p>
        零售价:<input type="text" value="{{ book.price }}" name="price">
    </p>
    <p>
        市场价:<input type="text" name="retail_price" value="{{ book.retail_price }}">
    </p>
    <p>
        出版社:<input type="text" value="{{ book.pub.pubName }}" disabled="disabled">
    </p>
    <p>
       <input type="submit" value="提交">
    </p>
    </form>
</body>
</html>